package operation;

import book.Book;
import book.BookShelf;

public class ExitOperation implements IOperation{
    @Override
    public void working(BookShelf bookShelf) {
        int currentSize = bookShelf.getUsedSize();
        for (int i = 0; i < currentSize; i++) {
            bookShelf.setBooks(null,i);
        }
        System.exit(0);
    }
}
